Optimal. Leaf size=153 \[ \frac {13 x}{2 a^3}-\frac {152 \sin (c+d x)}{15 a^3 d}+\frac {13 \cos (c+d x) \sin (c+d x)}{2 a^3 d}-\frac {\cos ^4(c+d x) \sin (c+d x)}{5 d (a+a \cos (c+d x))^3}-\frac {11 \cos ^3(c+d x) \sin (c+d x)}{15 a d (a+a \cos (c+d x))^2}-\frac {76 \cos ^2(c+d x) \sin (c+d x)}{15 d \left (a^3+a^3 \cos (c+d x)\right )} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.18, antiderivative size = 153, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {2844, 3056,
2813} \begin {gather*} -\frac {152 \sin (c+d x)}{15 a^3 d}-\frac {76 \sin (c+d x) \cos ^2(c+d x)}{15 d \left (a^3 \cos (c+d x)+a^3\right )}+\frac {13 \sin (c+d x) \cos (c+d x)}{2 a^3 d}+\frac {13 x}{2 a^3}-\frac {\sin (c+d x) \cos ^4(c+d x)}{5 d (a \cos (c+d x)+a)^3}-\frac {11 \sin (c+d x) \cos ^3(c+d x)}{15 a d (a \cos (c+d x)+a)^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2813
Rule 2844
Rule 3056
Rubi steps
\begin {align*} \int \frac {\cos ^5(c+d x)}{(a+a \cos (c+d x))^3} \, dx &=-\frac {\cos ^4(c+d x) \sin (c+d x)}{5 d (a+a \cos (c+d x))^3}-\frac {\int \frac {\cos ^3(c+d x) (4 a-7 a \cos (c+d x))}{(a+a \cos (c+d x))^2} \, dx}{5 a^2}\\ &=-\frac {\cos ^4(c+d x) \sin (c+d x)}{5 d (a+a \cos (c+d x))^3}-\frac {11 \cos ^3(c+d x) \sin (c+d x)}{15 a d (a+a \cos (c+d x))^2}-\frac {\int \frac {\cos ^2(c+d x) \left (33 a^2-43 a^2 \cos (c+d x)\right )}{a+a \cos (c+d x)} \, dx}{15 a^4}\\ &=-\frac {\cos ^4(c+d x) \sin (c+d x)}{5 d (a+a \cos (c+d x))^3}-\frac {11 \cos ^3(c+d x) \sin (c+d x)}{15 a d (a+a \cos (c+d x))^2}-\frac {76 \cos ^2(c+d x) \sin (c+d x)}{15 d \left (a^3+a^3 \cos (c+d x)\right )}-\frac {\int \cos (c+d x) \left (152 a^3-195 a^3 \cos (c+d x)\right ) \, dx}{15 a^6}\\ &=\frac {13 x}{2 a^3}-\frac {152 \sin (c+d x)}{15 a^3 d}+\frac {13 \cos (c+d x) \sin (c+d x)}{2 a^3 d}-\frac {\cos ^4(c+d x) \sin (c+d x)}{5 d (a+a \cos (c+d x))^3}-\frac {11 \cos ^3(c+d x) \sin (c+d x)}{15 a d (a+a \cos (c+d x))^2}-\frac {76 \cos ^2(c+d x) \sin (c+d x)}{15 d \left (a^3+a^3 \cos (c+d x)\right )}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.58, size = 173, normalized size = 1.13 \begin {gather*} \frac {2 \cos \left (\frac {1}{2} (c+d x)\right ) \left (-3 \sec \left (\frac {c}{2}\right ) \sin \left (\frac {d x}{2}\right )+46 \cos ^2\left (\frac {1}{2} (c+d x)\right ) \sec \left (\frac {c}{2}\right ) \sin \left (\frac {d x}{2}\right )-508 \cos ^4\left (\frac {1}{2} (c+d x)\right ) \sec \left (\frac {c}{2}\right ) \sin \left (\frac {d x}{2}\right )+15 \cos ^5\left (\frac {1}{2} (c+d x)\right ) (26 d x-12 \sin (c+d x)+\sin (2 (c+d x)))-3 \cos \left (\frac {1}{2} (c+d x)\right ) \tan \left (\frac {c}{2}\right )+46 \cos ^3\left (\frac {1}{2} (c+d x)\right ) \tan \left (\frac {c}{2}\right )\right )}{15 a^3 d (1+\cos (c+d x))^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.14, size = 101, normalized size = 0.66
method | result | size |
derivativedivides | \(\frac {-\frac {\left (\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{5}+\frac {8 \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3}-31 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )+\frac {-28 \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-20 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{\left (1+\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{2}}+52 \arctan \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{4 d \,a^{3}}\) | \(101\) |
default | \(\frac {-\frac {\left (\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{5}+\frac {8 \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3}-31 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )+\frac {-28 \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-20 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{\left (1+\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{2}}+52 \arctan \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{4 d \,a^{3}}\) | \(101\) |
risch | \(\frac {13 x}{2 a^{3}}-\frac {i {\mathrm e}^{2 i \left (d x +c \right )}}{8 a^{3} d}+\frac {3 i {\mathrm e}^{i \left (d x +c \right )}}{2 a^{3} d}-\frac {3 i {\mathrm e}^{-i \left (d x +c \right )}}{2 a^{3} d}+\frac {i {\mathrm e}^{-2 i \left (d x +c \right )}}{8 a^{3} d}-\frac {2 i \left (150 \,{\mathrm e}^{4 i \left (d x +c \right )}+525 \,{\mathrm e}^{3 i \left (d x +c \right )}+745 \,{\mathrm e}^{2 i \left (d x +c \right )}+485 \,{\mathrm e}^{i \left (d x +c \right )}+127\right )}{15 d \,a^{3} \left ({\mathrm e}^{i \left (d x +c \right )}+1\right )^{5}}\) | \(148\) |
norman | \(\frac {\frac {13 x}{2 a}-\frac {51 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{4 a d}-\frac {721 \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{12 a d}-\frac {6613 \left (\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{60 a d}-\frac {1165 \left (\tan ^{7}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{12 a d}-\frac {475 \left (\tan ^{9}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{12 a d}-\frac {59 \left (\tan ^{11}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{12 a d}+\frac {5 \left (\tan ^{13}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{12 a d}-\frac {\tan ^{15}\left (\frac {d x}{2}+\frac {c}{2}\right )}{20 a d}+\frac {65 x \left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{2 a}+\frac {65 x \left (\tan ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{a}+\frac {65 x \left (\tan ^{6}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{a}+\frac {65 x \left (\tan ^{8}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{2 a}+\frac {13 x \left (\tan ^{10}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{2 a}}{\left (1+\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{5} a^{2}}\) | \(262\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.51, size = 184, normalized size = 1.20 \begin {gather*} -\frac {\frac {60 \, {\left (\frac {5 \, \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} + \frac {7 \, \sin \left (d x + c\right )^{3}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{3}}\right )}}{a^{3} + \frac {2 \, a^{3} \sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}} + \frac {a^{3} \sin \left (d x + c\right )^{4}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{4}}} + \frac {\frac {465 \, \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} - \frac {40 \, \sin \left (d x + c\right )^{3}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{3}} + \frac {3 \, \sin \left (d x + c\right )^{5}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{5}}}{a^{3}} - \frac {780 \, \arctan \left (\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1}\right )}{a^{3}}}{60 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.41, size = 135, normalized size = 0.88 \begin {gather*} \frac {195 \, d x \cos \left (d x + c\right )^{3} + 585 \, d x \cos \left (d x + c\right )^{2} + 585 \, d x \cos \left (d x + c\right ) + 195 \, d x + {\left (15 \, \cos \left (d x + c\right )^{4} - 45 \, \cos \left (d x + c\right )^{3} - 479 \, \cos \left (d x + c\right )^{2} - 717 \, \cos \left (d x + c\right ) - 304\right )} \sin \left (d x + c\right )}{30 \, {\left (a^{3} d \cos \left (d x + c\right )^{3} + 3 \, a^{3} d \cos \left (d x + c\right )^{2} + 3 \, a^{3} d \cos \left (d x + c\right ) + a^{3} d\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 473 vs.
\(2 (143) = 286\).
time = 4.17, size = 473, normalized size = 3.09 \begin {gather*} \begin {cases} \frac {390 d x \tan ^{4}{\left (\frac {c}{2} + \frac {d x}{2} \right )}}{60 a^{3} d \tan ^{4}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 120 a^{3} d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 60 a^{3} d} + \frac {780 d x \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )}}{60 a^{3} d \tan ^{4}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 120 a^{3} d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 60 a^{3} d} + \frac {390 d x}{60 a^{3} d \tan ^{4}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 120 a^{3} d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 60 a^{3} d} - \frac {3 \tan ^{9}{\left (\frac {c}{2} + \frac {d x}{2} \right )}}{60 a^{3} d \tan ^{4}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 120 a^{3} d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 60 a^{3} d} + \frac {34 \tan ^{7}{\left (\frac {c}{2} + \frac {d x}{2} \right )}}{60 a^{3} d \tan ^{4}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 120 a^{3} d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 60 a^{3} d} - \frac {388 \tan ^{5}{\left (\frac {c}{2} + \frac {d x}{2} \right )}}{60 a^{3} d \tan ^{4}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 120 a^{3} d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 60 a^{3} d} - \frac {1310 \tan ^{3}{\left (\frac {c}{2} + \frac {d x}{2} \right )}}{60 a^{3} d \tan ^{4}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 120 a^{3} d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 60 a^{3} d} - \frac {765 \tan {\left (\frac {c}{2} + \frac {d x}{2} \right )}}{60 a^{3} d \tan ^{4}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 120 a^{3} d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 60 a^{3} d} & \text {for}\: d \neq 0 \\\frac {x \cos ^{5}{\left (c \right )}}{\left (a \cos {\left (c \right )} + a\right )^{3}} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.46, size = 113, normalized size = 0.74 \begin {gather*} \frac {\frac {390 \, {\left (d x + c\right )}}{a^{3}} - \frac {60 \, {\left (7 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} + 5 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )}}{{\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + 1\right )}^{2} a^{3}} - \frac {3 \, a^{12} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} - 40 \, a^{12} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} + 465 \, a^{12} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )}{a^{15}}}{60 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.47, size = 137, normalized size = 0.90 \begin {gather*} -\frac {3\,\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )-46\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2\,\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )+508\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4\,\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )+420\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^6\,\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )-120\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^8\,\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )-390\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5\,\left (c+d\,x\right )}{60\,a^3\,d\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________